﻿using Dyao.Book.Entity;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Microsoft.EntityFrameworkCore;

namespace Dyao.Book.Repository.DbContext.Configurations
{
    public class BookCatalogueEntityTypeConfiguration : IEntityTypeConfiguration<SpiderLogEntity>
    {
        public void Configure(EntityTypeBuilder<SpiderLogEntity> builder)
        {
            builder.Property(a => a.LogType).HasEnumToIntConversion();
        }
    }
}
